package com.example.ui.contact.bean;

public class MessageItem {
    private static final String TAG = MessageItem.class.getSimpleName();

    /*
     * 发送消息的名字
     */
    private String name;

    /*
     * 消息的时间
     */
    private String date;

    /*
     * 消息的文本内容
     */
    private String text;

    /*
     * 消息类型，是发送的或是接收的
     */
    private boolean isComMeg = true;
    
    /*
     * 记录消息数目
     */
    private int msgNum = 0 ;
    
    /*
     * 推送消息类型的区分
     */
    private String msgType = "";
    
    public int getMsgNum(){
    	return msgNum;
    }
    public void setMsgNum(){
    	msgNum++;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getMsgText() {
        return text;
    }

    public void setMsgText(String text) {
        this.text = text;
    }

    public boolean getMsgType() {
        return isComMeg;
    }

    public void setMsgType(boolean isComMsg) {
    	isComMeg = isComMsg;
    }

    public MessageItem() {
    }

    public MessageItem(String name, String date, String text, boolean isComMsg,String msgType) {
        super();
        this.name = name;
        this.date = date;
        this.text = text;
        this.isComMeg = isComMsg;
        this.msgType = msgType;
    }

}
